Software Engineering System and Method for Self-Adaptive Dynamic Software Components

ABSTRACT

There is disclosed a software engineering system and method for engineering software components. In an embodiment, the method comprises providing the software component with an input interface, an output interface, and a control interface, the control interface being configurable to receive external conditions or parameters that are specific to an environment or to a domain; and providing one or more externally modifiable adapters, the one or more externally modifiable adapters having environment-specific or domain-specific data, and being configurable to be dynamically bound to the software component in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed.

RELATED APPLICATION

The present application claims priority to Canadian patent application number 2607537, filed on Oct. 22, 2007, which is hereby incorporated by reference herein in its entirety.

COPYRIGHT NOTICE

A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever.

BACKGROUND OF THE INVENTION

1. Field of Invention

The present invention relates generally to software engineering systems and methods for self-adaptive dynamic software components. More particularly, the present invention relates to a novel approach to engineering self-adaptive dynamic software components with the introduction of a “control interface” in addition to the interfaces for input data and output data. The control interface may receive as an input one or more environment-specific or domain-specific conditions and/or parameters which may be used to dynamically configure the software components to perform appropriately in specific environments or domains.

2. Description of Prior Art

Today's businesses face unprecedented changes and heavily depend on information technology (IT) for adapting to the changes and for efficient operations with high productivity. And yet, IT has become a major bottleneck for business transformation or optimization due to the long lead time required to implement new processes/functions or changes in the business models and processes.

The business processes continuously change while today's IT solutions are often not flexible enough to adapt to the changes in time and on budget. For example, one-third of IT projects run over time, one-fifth run over budget and one-fifth fall short of planned functionality according to the recent studies. Consequently, there is quite often a significant mismatch between the business process and the deployed IT solution for the business.

One source of the problem is the current software engineering model where the software design is based on static components, i.e., the functional behaviour of a software component is statically defined inside of software components and any changes to the functional behaviour of a component requires redevelopment of the component.

Using the traditional approach to model a business into software engineering, a business operation needs to be decomposed into autonomous functional units. Then, the business functional units are mapped to software components, and the interfaces are specified for the software components to receive input data and to produce output data. All the business rules, functional behaviour, and business processes associated with the components are embedded inside the functional components. This may result in a rigid, inflexible approach to software development.

SUMMARY

This present invention relates to software engineering systems and methods for self-adaptive dynamic software components. More particularly, the present invention proposes a novel approach to engineering self-adaptive dynamic software components with the introduction of a “control interface” in addition to the interfaces for input data and output data. The control interface may receive as an input one or more environment-specific or domain-specific conditions and/or parameters which may be used to dynamically configure the software components to perform appropriately in specific environments or domains.

In an aspect, there is provided a method of engineering a software component, comprising: providing the software component with an input interface, an output interface, and a control interface, the control interface being configurable to receive external conditions or parameters that are specific to an environment or to a domain; providing one or more externally modifiable adapters, the one or more externally modifiable adapters having environment-specific or domain-specific data, and being configurable to be dynamically bound to the software component in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed.

In an embodiment, the method further comprises providing a feedback loop configured to communicate output data from the output interface to the one or more externally modifiable adapters.

In another embodiment, the method further comprises modifying one or more externally modifiable adapters in dependence upon the output data received via the feedback loop.

In another embodiment, the method further comprises selecting an externally modifiable adapter in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed; and dynamically binding the selected externally modifiable adapter to the software component in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed.

In another embodiment, the selected externally modifiable adapter is dynamically bound to the software component using the dynamic binding capability of a programming language in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed.

In another embodiment, the one or more externally modifiable adapters are human readable and modifiable by a human expert.

In another aspect, there is provided a system for engineering a software component, comprising: an input interface, an output interface, and a control interface provided on the software component, the control interface being configurable to receive external conditions or parameters that are specific to an environment or to a domain; one or more externally modifiable adapters, the one or more externally modifiable adapters having environment-specific or domain-specific data, and being configurable to be dynamically bound to the software component in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed.

In an embodiment, the system further comprises a feedback loop configured to communicate output data from the output interface to the one or more externally modifiable adapters.

In another embodiment, the system further comprises means for modifying one or more externally modifiable adapters in dependence upon the output data received via the feedback loop.

In another embodiment, the system further comprises means for selecting an externally modifiable adapter in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed; and means for dynamically binding the selected externally modifiable adapter to the software component in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed.

In another embodiment, the selected externally modifiable adapter is configured to be dynamically bound to the software component using the dynamic binding capability of a programming language in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed.

In another embodiment, the one or more externally modifiable adapters are human readable and modifiable by a human expert.

In another aspect, there is provided a data processor readable medium storing data processor code that when loaded into a data processor adapts the data processor to perform a method of engineering a software component, comprising: code for providing the software component with an input interface, an output interface, and a control interface, the control interface being configurable to receive external conditions or parameters that are specific to an environment or to a domain; code for providing one or more externally modifiable adapters, the one or more externally modifiable adapters having environment-specific or domain-specific data, and being configurable to be dynamically bound to the software component in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed.

In an embodiment, the data processor readable medium further comprises code for providing a feedback loop configured to communicate output data from the output interface to the one or more externally modifiable adapters.

In another embodiment, the data processor readable medium further comprises code for modifying one or more externally modifiable adapters in dependence upon the output data received via the feedback loop.

In an embodiment, the data processor readable medium further comprises code for selecting an externally modifiable adapter in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed; and code for dynamically binding the selected externally modifiable adapter to the software component in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed.

In an embodiment, the data processor readable medium further comprises code for dynamically binding the selected externally modifiable adapter to the software component using the dynamic binding capability of a programming language in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed.

In an embodiment, the data processor readable medium further comprises for configuring the externally modifiable adapters to be human readable and modifiable by a human expert.

These and other aspects of the invention will become apparent from the following more particular descriptions of exemplary embodiments.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention will be more fully understood and appreciated by reading the following Detailed Description in conjunction with the accompanying drawings, in which:

FIG. 1 shows a generic data processing system that may provide a suitable operating environment;

FIG. 2 shows a schematic block diagram of a traditional component model;

FIG. 3 shows a schematic block diagram of a new dynamic component model in accordance with an embodiment;

FIG. 4 shows a schematic block diagram of a new dynamic component model in accordance with another embodiment;

FIG. 5 shows schematic block diagrams of two component models dynamically bound during deployment in accordance with another embodiment;

FIG. 6 shows a schematic block diagram of an illustrative de-identification component based on traditional component business modelling;

FIG. 7 shows a schematic block diagram of an illustrative de-identification component based on the new dynamic component model in accordance with an embodiment; and

FIG. 8 shows a schematic flowchart of a method in accordance with an embodiment.

DETAILED DESCRIPTION

The present invention will be more fully understood and appreciated by reading the following Detailed Description in conjunction with the accompanying drawings, wherein like reference numerals refer to like parts throughout.

As noted above, the present invention relates to software engineering systems and methods for self-adaptive dynamic software components.

The invention may be practiced in various embodiments. A suitably configured data processing system, and associated communications networks, devices, software and firmware may provide a platform for enabling one or more embodiments. By way of example, FIG. 1 shows a generic data processing system 100 that may include a central processing unit (“CPU”) 102 connected to a storage unit 104 and to a random access memory 106. The CPU 102 may process an operating system 101, application program 103, and data 123. The operating system 101, application program 103, and data 123 may be stored in storage unit 104 and loaded into memory 106, as may be required. An operator 107 may interact with the data processing system 100 using a video display 108 connected by a video interface 105, and various input/output devices such as a keyboard 110, mouse 112, and disk drive 114 connected by an I/O interface 109. In known manner, the mouse 112 may be configured to control movement of a cursor in the video display 108, and to operate various graphical user interface (GUI) controls appearing in the video display 108 with a mouse button. The disk drive 114 may be configured to accept data processing system readable media 116. The data processing system 100 may form part of a network via a network interface 111, allowing the data processing system 100 to communicate with other suitably configured data processing systems (not shown). The particular configurations shown by way of example in this specification are not meant to be limiting.

Now referring to FIG. 2, shown is a traditional component model in which input data 202 is processed by a software component 204 to always produce the same output data 206 regardless of any environmental parameters. As such, when there are changes in the conditions or parameters, the component needs to be redeveloped to reflect those changes. Any changes in the business rules, functions, control flows between functions, or data attributes or formats also require the software component to be modified or redeveloped. Generally speaking, the lead time required for the IT professionals to understand and interpret the business changes, reflect the changes into the software design, identify the affected software components, redevelop the software components, test and deploy a new system is much longer than the time for the business to change, and consequently IT departments may be continuously in a catch-up mode.

In the traditional component modeling as illustrated in FIG. 2, each software component 204 has only two external interfaces: an input interface 201 for receiving input data 202 and an output interface 205 for producing output data 206. In the traditional approach, the output data 206 is simply a function of the input data 202, and the component 204 needs to be re-designed and re-developed to adapt to changes in business rules because the program logics to handle the business rules are hard-coded within the component 204.

In order to address some of the limitations inherent to the traditional component model of FIG. 2, an embodiment of the present invention provides a new approach to software engineering in which software components are able to adapt to changes in conditions or parameters in a more responsive way and with minimal or no additional programming effort.

More generally, as illustrated in FIG. 3, each software component engineered in accordance with an embodiment of the present invention has at least three external interfaces: (1) an input interface 301 for receiving input data 302 to be processed by the component; (2) a control interface 303 for controlling the internal behaviour of software component 304 by providing the business rules or environmental conditions and/or parameters (via control input 308) associated with processing the input data 302 and producing output data 306; and (3) an output interface 305 for producing output data 306. Thus, the output data 306 is now a function of the input data 302 as well as the control input 308.

In an embodiment, the control interface for receiving the business rules or environmental conditions and/or parameters 308 may be provided in an external human-readable as well as machine-readable format. As such, the software component 304 can be dynamically configured, or re-configured, as necessary to change the internal behaviour of a business component to adapt to changing business rules or to changing environmental variables, without any significant programming effort. This approach and method for software engineering in accordance with various embodiments of the present invention is referred to hereinafter as “self-adaptive dynamic component modeling”.

The self-adaptive dynamic component modelling in accordance with an embodiment of the present invention automatically adapts to external variances or changes introduced via a control interface (e.g. control interface 303) and thus obviates the need for re-developing a component 304 to adapt to business changes, to adapt to environmental variances, or to address the variances of business rules for a specific organization or geography. Thus, self-adaptive dynamic component modelling may be viewed as a foundation for realization and implementation of autonomous computing based on varying control inputs.

Now referring to FIG. 4, the software component 304 of FIG. 3 may be extended for machine learning by reflecting the output data 306 from the component 304 on the control input 308, via a feedback loop 410, so that the component 304 can adjust its functional behaviour based on the result of the previous processing step or iteration. This feedback loop facility enables the component 304 to learn from experiences and dynamically adjust its behaviour, thus improving the intelligence and dynamic adaptability of the component 304.

Dynamic component modeling also enables a “roaming” software component that is self-adaptive to the target runtime environment. A roaming software component in a distributed computing environment is not necessarily aware of the system platform properties (e.g., operating system, database management system, transaction management system, file systems) when it arrives on a remote system. Therefore, the roaming software component needs to discover dynamically the conditions and parameters associated with the system platform upon arrival and self-adapt to the target runtime platform. This self-adaptability of a roaming software component may be critical, especially in a distributed computing environment involving heterogeneous systems. In the absence of this self-adaptability in the traditional software engineering model, a separate software component needs to be developed for each runtime platform even though the functional capability is identical. For example, we need different versions of a word processor with identical functional capability for Windows® operating system, Linux® operating system, Apple® computer, and so on. In this dynamic component modeling of this present invention for self-adaptive software component, the software component interacts through three external interfaces: one for accessing input data (the “input” interface), another for producing output data (the “output” interface), and the other (the “control” interface) for accepting environmental variables and characteristics to adjust the internal behaviour of the software component accordingly with the runtime parameters.

For the purposes of illustration in FIG. 5, the following terms are used and the definitions of the terms are as follows: (1) “environment-neutral” subcomponent represents a subcomponent of a software component which implements business functions that are independent of the computer system platform or environment (e.g., a word processor, a mortgage calculator); (2) “environment-specific” subcomponents represent a set of subcomponents of a software component which implement the system functions that are specific to computer system platforms (e.g., IBM® z/OS®, IBM® AIX®, Microsoft® Windows®, Red Hat® Enterprise Linux®) or environment (e.g., IBM® DB2®, Oracle® Database, IBM® WebSphere®); (3) “domain-neutral” subcomponent represents a subcomponent of a software component which implements business functions that are independent of industry or business domains (e.g., software component for customer information management); and (4) “domain-specific” subcomponents represent a set of subcomponents of a software component which implement business functions that are specific to business domains (e.g., mortgage calculation rules specific to a financial institution, de-identification rules for compliance to privacy laws of a specific country).

Now referring to FIG. 5, shown is a schematic block diagram 500 of an illustrative self-adaptive dynamic software component in which a software component may be decomposed into two subcomponents: (1) an environment-neutral first subcomponent 504 and (2) a domain-neutral second component 514.

As shown in FIG. 5, the environment-neutral first subcomponent 504 may include a data input 502 received at input interface 501, data output 506 generated at output interface 505, and environment-specific adapters 510 that may be dynamically bound by control input 508 to the first sub-component 504 via control interface 503, based on the dynamic binding capabilities of various programming languages (e.g., dynamic link of Java™, virtual function of Java™, rendezvous of Ada). A suitable environment-specific adapter 510 may be selected to handle (i.e. self-adapt to) the conditions and parameters specific to the computer system platform or parameters, and to keep the first subcomponent 504 independent of the environment through an architectural and design technique of separation of concerns. In this case, the first subcomponent 504 and one of the environment-specific adapters 510 bound to the first subcomponent 504 will constitute an environment-specific subcomponent that will be self-adaptive to the computer system platform conditions and environmental parameters. This may be done by using the input interface 501 to receive input data 502, the control interface 503 to receive environmental conditions and parameters via control input 508, and the output interface 505 to produce output data 506.

In the same manner, the domain-neutral generic second subcomponent 514 may be bound to one of the domain-specific adapters 518 via control input 520 based on the dynamic binding capability of various programming languages (e.g., dynamic link of Java, virtual function of Java, rendezvous of Ada). The control interface 513 of second subcomponent 514 may be used to handle (i.e. self-adapt to) the business rules and parameters specific to particular industries or business domains, thereby keeping the business functions in the second subcomponent 514 generic for business agility and flexibility to changes through an architectural and design technique of separation of concerns. In this case, the second subcomponent 514 and one of the domain-specific adapters 518 will constitute a domain-specific software subcomponent that will be self-adaptive to the business rules and parameters that are specific to a business domain. This is done by using the input interface 511 to receive input data 512, the control interface 513 to accept domain-specific business rules and parameters via control input 520, and the output interface 515 to produce output data 516.

In summary, there is a subcomponent 504 that is environmentally neutral which is bound to one of environment-specific adapters 510, and another subcomponent 514 that performs generic functions but which is bound to one of domain-specific adapters 518 depending on the specific technology environment or a business domain in which the subcomponents 504 or 514 must operate. Multiple subcomponents (510, 518 etc.) may be developed, as required, for various technology environments or for various business domains. When an environment neutral and generic software component (comprising subcomponents 504 and 514) is deployed to a specific environment for a specific domain, the corresponding adapters 510 and 518 that are specific to the environment and the domain will be dynamically bound to the subcomponents 504 and 514 accordingly.

Now referring to FIG. 6, shown is an illustrative example of a software application for de-identification of protected personal information to comply with the privacy laws. As shown, using a traditional component business model (previously illustrated in FIG. 2), it may be necessary to build multiple components 604, 606, 608, 610 to address the specific requirements in each country or industry, because the de-identification rules are subject to different statutory requirements applicable to those countries or industries.

In contrast, FIG. 7 shows a schematic block diagram 700 of an illustrative software application for de-identification of protected personal information engineered according to an embodiment of the present invention. As shown, rather than having multiple components 604, 606, 608, 610 to address each specific country or industry, a self-adaptive dynamic component 704 may be configured to receive input data 702 with personal information at input interface 701, receive at control interface 703 control input 708 comprising country or industry specific adapters 710, 712, 714 to produce de-identified output data 706 at output interface 705. With this approach, the software component 704 for de-identification of protected personal information to comply with privacy laws may be suitably configured to handle all generic behaviour for de-identification, and it is then necessary only to provide new country or industry specific adapters or control files to address country or industry specific rules. This new approach obviates the need to develop multiple software components. In addition, when the environment-specific or domain-specific externally modifiable adapter is human-readable as well as machine-readable (e.g. a document in XML notation), a human expert such as a business analyst or a lawyer can provide the control information necessary for the de-identification component.

Now referring to FIG. 8, shown is an illustrative method 800 in accordance with an embodiment. As shown, method 800 begins and at block 802 provides a software component having input, output, and control interfaces, the control interface being configured to receive external conditions and/or parameters that are specific to environment or to business domains.

Method 800 then proceeds to block 804, where one or more externally modifiable adapters may be provided, the one or more externally modifiable adapters having environment-specific or domain-specific data.

Method 800 then proceeds to block 806, where a selected externally modifiable adapter may be dynamically bound to the software component in dependence upon external conditions and/or parameters that are specific to an environment or domain. For example, an environment-specific external adapter may be selected based on the external conditions and/or parameters that are specific to a technology environment, and this environment-specific external adapter may be dynamically bound to the software component based on the dynamic binding capability of various programming languages (e.g., dynamic link of Java, virtual function of Java, rendezvous of Ada).

Method 800 may then proceed to block 808, where method 800 may provide a human readable externally modifiable adapter that may be modified by a human expert (i.e. a technology or business analyst familiar with a technology environment.)

Method 800 may then proceed to block 810, where method 800 may receive output data from the output interface via a feedback loop.

Method 800 may then proceed to block 812, where one or more of the externally modifiable adapters may be modified in dependence upon the output data received via the feedback loop.

Method 800 may then proceed to decision block 814, where method 800 may continue after modification of one or more externally modifiable adapters by returning to block 804. Otherwise, method 800 may end. As will be appreciated, this continuous loop may be used to dynamically adjust one or more of the environment-specific or domain-specific externally modifiable adapters such that the output data may be adjusted based on the previous output data under the similar circumstances, and thus enabling machine learning.

While various illustrative embodiments of the invention have been described above, it will be appreciated by those skilled in the art that variations and modifications may be made. Thus, the scope of the invention is defined by the following claims. 

What is claimed is:
 1. A method of engineering a software component, comprising: providing the software component with an input interface, an output interface, and a control interface, the control interface being configurable to receive external conditions or parameters that are specific to an environment or to a domain, and to allow said software component to automatically and dynamically adapt to said received external conditions or parameters during runtime, wherein said automatic and dynamic adaptation is not dictated by the activation of preprogrammed code within said software component; providing one or more externally modifiable adapters, the one or more externally modifiable adapters having environment-specific or domain-specific data, and being configurable to be dynamically bound to the software component in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed.
 2. The method of claim 1, further comprising providing a feedback loop configured to communicate output data from the output interface to the one or more externally modifiable adapters.
 3. The method of claim 2, further comprising modifying the one or more externally modifiable adapters in dependence upon the output data received via the feedback loop.
 4. The method of claim 1, further comprising: selecting an externally modifiable adapter in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed; and dynamically binding the selected externally modifiable adapter to the software component in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed.
 5. The method of claim 4, wherein the selected externally modifiable adapter is dynamically bound to the software component using dynamic binding capability of a programming language in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed.
 6. The method of claim 1, wherein the one or more externally modifiable adapters are human readable and modifiable by a human expert.
 7. A system for engineering a software component, comprising: input data; output data; an input interface that receives input data, an output interface that produces the output data based on the input data, and a control interface provided on the software component, the control interface being configurable to receive external conditions or parameters that are specific to an environment or to a domain, and to allow said software component to automatically and dynamically adapt to said received external conditions or parameters during runtime, wherein said automatic and dynamic adaptation is not dictated by the activation of preprogrammed code within said software component; one or more externally modifiable adapters, the one or more externally modifiable adapters comprising a non-transitory storage medium having environment-specific or domain-specific data stored thereon, and being configurable to be dynamically bound to the software component in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed.
 8. The system of claim 7, further comprising a feedback loop configured to communicate output data from the output interface to the one or more externally modifiable adapters.
 9. The system of claim 8, further comprising means for modifying the one or more externally modifiable adapters in dependence upon the output data received via the feedback loop.
 10. The system of claim 7, further comprising: means for selecting an externally modifiable adapter in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed; and means for dynamically binding the selected externally modifiable adapter to the software component in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed.
 11. The system of claim 10, wherein the selected externally modifiable adapter is configured to be dynamically bound to the software component using dynamic binding capability of a programming language in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed.
 12. The system of claim 7, wherein the one or more externally modifiable adapters are human readable and modifiable by a human expert.
 13. A data processor readable medium storing data processor code that when loaded into a data processor adapts the data processor to perform a method of engineering a software component, comprising: code for providing the software component with an input interface, an output interface, and a control interface, the control interface being configurable to receive external conditions or parameters that are specific to an environment or to a domain, and to allow said software component to automatically and dynamically adapt to said received external conditions or parameters during runtime, wherein said automatic and dynamic adaptation is not dictated by the activation of preprogrammed code within said software component; code for providing one or more externally modifiable adapters, the one or more externally modifiable adapters having environment-specific or domain-specific data, and being configurable to be dynamically bound to the software component in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed.
 14. The data processor non-transitory readable medium of claim 13, further comprising code for providing a feedback loop configured to communicate output data from the output interface to the one or more externally modifiable adapters.
 15. The data processor non-transitory readable medium of claim 14, further comprising code for modifying the one or more externally modifiable adapters in dependence upon the output data received via the feedback loop.
 16. The data processor non-transitory readable medium of claim 13, further comprising: code for selecting an externally modifiable adapter in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed; and code for dynamically binding the selected externally modifiable adapter to the software component in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed.
 17. The data processor non-transitory medium of claim 16, further comprising code for dynamically binding the selected externally modifiable adapter to the software component using dynamic binding capability of a programming language in dependence upon external conditions or parameters that are specific to an environment or to a domain in which the software component is to be executed.
 18. The data processor non-transitory readable medium of claim 13, further comprising code for configuring the externally modifiable adapters to be human readable and modifiable by a human expert. 